﻿using System.Configuration;
using System;

namespace CssAndJsCombiner.Configuration
{
    public class ClientResourceGroupElement : ConfigurationElement
    {
        [ConfigurationProperty("name", IsRequired = true)]
        public string Name
        {
            get { return (string)this["name"]; }
            set { this["name"] = value; }
        }

        [ConfigurationProperty("inherits", IsRequired = false)]
        public string Inherits
        {
            get { return (string)this["inherits"]; }
            set { this["inherits"] = value; }
        }

        [ConfigurationProperty("", IsDefaultCollection = true, IsRequired = true)]
        public ClientResourceItemCollection Items
        {
            get { return (ClientResourceItemCollection)this[""]; }
            set { this[""] = value; }
        }

        public ClientResourceGroupElement() { }
    }
}
